﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SYS_ST_FILE
// * CreateDate    : 2013-11-06 16:50:26
// * Creater       : CodeSmith
// * LastChangeDate: 2013-11-06 16:50:26
// * LastChanger   : 2013-11-06 16:50:26
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Sys
{
    /// <summary>
    /// SysStFile
    /// </summary>
    public partial class SysStFileBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objSysStFileEntity">Entity</param>
        /// <returns>Entity</returns>
        public static SysStFileEntity GetSysStFile(SysStFileEntity objSysStFileEntity)
        {
            return DataAccess.SelectSingle<SysStFileEntity>(objSysStFileEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objSysStFileEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertSysStFile(SysStFileEntity objSysStFileEntity)
        {
            return DataAccess.Insert(objSysStFileEntity);
        }

        public static bool InsertSysStFile(List<SysStFileEntity> objSysStFileEntityList)
        {
            return DataAccess.Insert(objSysStFileEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objSysStFileEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateSysStFile(SysStFileEntity objSysStFileEntity)
        {
            return DataAccess.Update(objSysStFileEntity);
        }

        public static bool UpdateSysStFile(List<SysStFileEntity> objSysStFileEntityList)
        {
            return DataAccess.Update<SysStFileEntity>(objSysStFileEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objSysStFileEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteSysStFile(SysStFileEntity objSysStFileEntity)
        {
            return DataAccess.Delete(objSysStFileEntity);
        }

        public static bool DeleteSysStFile(List<SysStFileEntity> objSysStFileEntityList)
        {
            return DataAccess.Delete<SysStFileEntity>(objSysStFileEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetSysStFileAll()
        {
            return DataAccess.SelectAllDataSet<SysStFileEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<SysStFileEntity> GetSysStFileAllList()
        {
            return DataAccess.SelectAll<SysStFileEntity>();
        }
        #endregion
    }


}

